package com.fnn.service.impl;

import com.fnn.entity.Book;
import com.fnn.mapper.BookMapper;
import com.fnn.mapper.UserMapper;
import com.fnn.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BookServiceImpl implements BookService {
    @Autowired
    private BookMapper bookMapper;


    @Override
    public List<Book> selectNewBook() {
        return bookMapper.selectAllByTime();
    }
}
